package com.ev.asl.dao;

import com.ev.custom.domain.*;
import com.ev.system.domain.DeptDO;
import com.ev.system.domain.UserDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface BasicsDao {


   List<Map<String,Object>> getMaterialIds();

   List<Map<String,Object>> getWareHouseIds();

   List<Map<String,Object>> getUserIds();

   List<Map<String,Object>> getClientIds();

   List<Map<String,Object>> getSupplierIds();

   List<Map<String,Object>> getDepartIds();

   List<Map<String,Object>> getDictionaryIds(String unitCode);

   List<Map<String,Object>> getFacilityLocation();

   List<Map<String,Object>> getMaterielTypeIds();



   int batchUpdate(List<MaterielDO> materiel);
   int  batchSave(List<MaterielDO> materielDOs);


   int batchUpdateWareHose(List<FacilityDO> list);
   int batchSaveHaveIdWareHose(List<FacilityDO> saveFacilityDOList);


   int batchUpdateUser(List<UserDO> updateUserDOList);
   int batchSaveUser(List<UserDO> saveUserDOList);


   int batchSaveClient(List<ClientDO> clientDOs);
   int updateBatchSelectiveClient(List<ClientDO> list);


   int batchUpdateSupplier(List<SupplierDO> param);
   int batchSaveSupplier(List<SupplierDO> param);


   int batchUpdateDepart(List<DeptDO> param);
   int batchSaveDepart(List<DeptDO> param);


   List<DeptDO> getDepartByIdPath(Map<String,Object> map);


   int batchSaveDictionary(List<DictionaryDO> param);
   int batchUpdateDictionary(List<DictionaryDO> param);


   int batchSaveLocation(List<FacilityLocationDO> param);
   int batchUpdateLocation(List<FacilityLocationDO> param);


   int batchSaveMaterialTYpe(List<MaterielTypeDO> param);
   int batchUpdateMaterialTYpe(List<MaterielTypeDO> param);



}
